package com.example.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot.entity.User;
import com.example.springboot.entity.request.BaseRequest;
import com.example.springboot.entity.request.PasswordRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 程序员小洋
 * @version 2022.3
 * @date 2022/12/8 11:37
 * @title 用户表的mapper层
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> listByCondition(BaseRequest baseRequest);

    User getByUsername(String username);

    int updatePassword(PasswordRequest request);

    void save(User user);
}
